package consulTest.dao;


import consulTest.Entity.TestEntity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectKey;


public interface EventLogDAO {

    @Select("select * from user where id = #{id}")
    TestEntity test8(Integer id);

    @Insert("insert into user (name,age) values (#{name},#{age})")
    @SelectKey(statement = "SELECT LAST_INSERT_ID() as id", keyProperty = "id", before = false, resultType = Integer.class)
    void addEntity(TestEntity testEntity);


    @Select("select 1 from user where id = #{id}")
    Boolean isDebitEnabled(@Param("id") Integer id);
}
